import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import('@/views/HomeView.vue'),
    redirect: 'personalInformation',
    children: [{
      path: 'personalInformation',
      name: 'PersonalInformation',
      component: () => import('@/views/PersonalInformation.vue'),
      meta: { title: '人员信息', icon: 'personalInformation' }
    }]
  }
]

const router = new VueRouter({
  routes
})

export default router
